<template>
  <el-container class="layout-container-demo" style="height: 100%">
    <el-header style="text-align: left; font-size: 40px">
        <div class="toolbar">
          <el-text class="mx-1" size="large">四川省普通高中信息技术学业水平合格性考试无纸化机考服务系统</el-text>
          <el-text class="mx-1" size="large" style="margin-left: 1vw">考生系统</el-text>
          <el-dropdown>
            <el-icon style="margin-left: 50vw; margin-top: 3vh">
            <setting/>
            </el-icon>
            <template #dropdown>
              <el-dropdown-menu>
                <el-dropdown-item>功能1</el-dropdown-item>
                <el-dropdown-item>功能2</el-dropdown-item>
                <el-dropdown-item>功能3</el-dropdown-item>
              </el-dropdown-menu>
            </template>
          </el-dropdown>
          <el-text class="mx-1" type="primary" size="large" style="margin-left: 1vw">用户名</el-text>
        </div>
      </el-header>
    <el-container class="layout-container-demo" style="height: 90%">
      <el-aside width="200px">
      <el-scrollbar>
        <el-menu :default-openeds="['1', '3']">
          <el-sub-menu index="1">
            <template #title>
              <el-icon><message /></el-icon>Navigator One
            </template>
            <el-menu-item-group>
              <template #title>Group 1</template>
              <el-menu-item index="1-1">Option 1</el-menu-item>
              <el-menu-item index="1-2">Option 2</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group title="Group 2">
              <el-menu-item index="1-3">Option 3</el-menu-item>
              <el-menu-item index="1-4">Option 4</el-menu-item>
            </el-menu-item-group>
          </el-sub-menu>
          <el-sub-menu index="2">
            <template #title>
              <el-icon><icon-menu /></el-icon>Navigator Two
            </template>
            <el-menu-item-group>
              <template #title>Group 1</template>
              <el-menu-item index="2-1">Option 1</el-menu-item>
              <el-menu-item index="2-2">Option 2</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group title="Group 2">
              <el-menu-item index="2-3">Option 3</el-menu-item>
              <el-menu-item index="2-4">Option 4</el-menu-item>
            </el-menu-item-group>
          </el-sub-menu>
          <el-sub-menu index="3">
            <template #title>
              <el-icon><setting /></el-icon>Navigator Three
            </template>
            <el-menu-item-group>
              <template #title>Group 1</template>
              <el-menu-item index="3-1"><router-link to="/candidateSysPage1-1">Option 1</router-link></el-menu-item>
              <el-menu-item index="3-2"><router-link to="/candidateSysPage1-2">Option 2</router-link></el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group title="Group 2">
              <el-menu-item index="3-3">Option 3</el-menu-item>
              <el-menu-item index="3-4">Option 4</el-menu-item>
            </el-menu-item-group>
          </el-sub-menu>
        </el-menu>
      </el-scrollbar>
    </el-aside>

      <el-main>
        <el-container>
          <el-header style="height:5vh; text-align: left" >页头</el-header>
          <el-main>
            <router-view></router-view>
          </el-main>
          <el-footer style="height:5vh; text-align: left" >页尾</el-footer>
        </el-container>
      </el-main>
    </el-container>
  </el-container>
</template>

<script scope setup>
import { Menu as IconMenu, Message, Setting } from '@element-plus/icons-vue'
</script>

<style scoped>
    .el-header, .el-footer {
        background-color: #B3C0D1;
        color: #333;
        text-align: right;
        line-height: 35px;
        height:8vh;
    }

    .el-aside {
        background-color: #D3DCE6;
        color: #333;
        text-align: center;
        line-height: 100vh;
    }

    .el-main {
        background-color: #E9EEF3;
        color: #333;
        text-align: center;
        line-height: 160px;
    }
    body > .el-container {
        margin-bottom: 40px;
    }

    .el-container:nth-child(5) .el-aside,
    .el-container:nth-child(6) .el-aside {
        line-height: 260px;
    }

    .el-container:nth-child(7) .el-aside {
        line-height: 100%;
    }
</style>
